xen,pod: Only sweep in an emergency, and only for 4k pages
authorGeorge Dunlap <george.dunlap@eu.citrix.com>
Thu, 28 Jun 2012 14:18:05 +0000 (15:18 +0100)
committerGeorge Dunlap <george.dunlap@eu.citrix.com>
Thu, 28 Jun 2012 14:18:05 +0000 (15:18 +0100)
commit8f7e8f7b56f62eb7fe7d459424b9f56466faaefb
treefca100bd2d8c55b13c24ba2fc6b07b398d6c6873
parent5a6a7ae5e6d79a72dc6b0b94f39441e64f664193
xen,pod: Only sweep in an emergency, and only for 4k pages

Testing has shown that doing sweeps for superpages slows down boot
significantly, but does not result in a significantly higher number of
superpages after boot.  Early sweeping for 4k pages causes superpages
to be broken up unnecessarily.

Only sweep if we're really out of memory.

v2:
 - Move unrelated code-motion hunk to another patch
v3:
 - Remove now-unused reclaim_super from pod struct

Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
Acked-by: Tim Deegan <tim@xen.org>
Committed-by: Tim Deegan <tim@xen.org>
xen/arch/x86/mm/p2m-pod.c
xen/include/asm-x86/p2m.h